package thread;

public class CurrentThreadDemo {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();
        System.out.println(main);
        dosome();
        System.out.println(main+"线程执行结束");
    }
    public static void dosome( ){
        Thread dosome = Thread.currentThread();
        System.out.println("执行都some方法的线程是"+dosome);
    }
}
